package com.alphas.project.common;

/**
 * 错误码
 *
 * @author alphas
 */
public enum StatusCode {

    ONLINE(1, "上线"),
    OFFLINE(2, "下线");
    /**
     * 状态码
     */
    private final int code;

    /**
     * 信息
     */
    private final String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
